package com.bdk.middle.member.service;

import com.bdk.middle.common.result.ResultDO;
import com.bdk.middle.member.api.domain.AccountDO;
import com.bdk.middle.member.api.query.AccountQueryDO;
import com.bdk.middle.member.core.entity.AccountEntity;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Reagan
 * @since 2021-03-17
 */
public interface AccountService extends IService<AccountEntity> {

    /**
     * 添加用户
     * @param domain 用户DO
     * @return ResultDO
     */
    public ResultDO add(AccountDO domain);


    /**
     * 修改用户信息
     * @param domain 用户DO
     * @return ResultDO
     */
    public ResultDO edit(AccountDO domain);


    /**
     * 获取用户详情
     * @param id 用户ID
     * @return ResultDO
     */
    public ResultDO get(String id);

    /**
     * 删除用户
     * @param id 用户ID
     * @param modifier 修改人用户名
     * @return ResultDO
     */
    public ResultDO remove(String id, String modifier);

    /**
     * 查找用户列表分页
     * @param query 查询DO
     * @return ResultDO
     */
    public ResultDO find(AccountQueryDO query);
}
